Submission #61364750
Source Code Expand
Copy
#include<bits/stdc++.h>using namespace std;int main(){int a,b;scanf("%d%d",&a,&b);printf("%d\n",(a+b)*(a+b));}
#include<bits/stdc++.h> using namespace std; int main(){ int a,b;scanf("%d%d",&a,&b); printf("%d\n",(a+b)*(a+b)); }
Submission Info
Submission Time | |
---|---|
Task | A - Happy New Year 2025 |
User | linguosheng |
Language | C++ 20 (gcc 12.2) |
Score | 100 |
Code Size | 126 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3804 KB |
Compile Error
Main.cpp: In function ‘int main()’: Main.cpp:4:16: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | int a,b;scanf("%d%d",&a,&b); | ~~~~~^~~~~~~~~~~~~~
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 1 ms | 3736 KB |
00_sample_01.txt | AC | 1 ms | 3684 KB |
00_sample_02.txt | AC | 1 ms | 3636 KB |
00_sample_03.txt | AC | 1 ms | 3612 KB |
01_random_00.txt | AC | 1 ms | 3664 KB |
01_random_01.txt | AC | 1 ms | 3636 KB |
01_random_02.txt | AC | 1 ms | 3748 KB |
01_random_03.txt | AC | 1 ms | 3800 KB |
01_random_04.txt | AC | 1 ms | 3644 KB |
01_random_05.txt | AC | 1 ms | 3640 KB |
01_random_06.txt | AC | 1 ms | 3680 KB |
02_handmade_00.txt | AC | 1 ms | 3804 KB |
02_handmade_01.txt | AC | 1 ms | 3804 KB |
02_handmade_02.txt | AC | 1 ms | 3632 KB |
02_handmade_03.txt | AC | 1 ms | 3756 KB |