Submission #740651
Source Code Expand
#include<stdio.h> int main(){ int i,j,N,sum=0; scanf("%d",&N); for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ sum = sum+i*j; } } for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ if(sum-N == i*j) printf("%d×%d\n",i,j); } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | tkkt0001 |
Language | C (GCC 4.6.4) |
Score | 0 |
Code Size | 259 Byte |
Status | WA |
Exec Time | 25 ms |
Memory | 796 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:7:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_13_69.txt, test_16_44.txt, test_40_40.txt, test_49_31.txt, test_51_74.txt, test_83_60.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | WA | 25 ms | 796 KB |
sample_02.txt | WA | 21 ms | 796 KB |
test_13_69.txt | WA | 23 ms | 792 KB |
test_16_44.txt | WA | 24 ms | 796 KB |
test_40_40.txt | WA | 22 ms | 796 KB |
test_49_31.txt | WA | 22 ms | 792 KB |
test_51_74.txt | WA | 24 ms | 732 KB |
test_83_60.txt | WA | 24 ms | 796 KB |