Submission #1789768
Source Code Expand
#include "bits/stdc++.h" using namespace std; int main() { int mi = 10001, a, b = 10001; for (int i = 0; i < 3; i++) { scanf("%d", &a); b = min(b, a); } mi = b; b = 10001; for (int i = 0; i < 2; i++) { scanf("%d", &a); b = min(b, a); } mi += b; mi -= 50; printf("%d\n", mi); }
Submission Info
Submission Time | |
---|---|
Task | A - ランチ (Lunch) |
User | ksi |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 378 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:8:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^ ./Main.cpp:15:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^
Judge Result
Set Name | set01 | set02 | set03 | set04 | set05 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 20 / 20 | 20 / 20 | 20 / 20 | 20 / 20 | 20 / 20 | ||||||||||
Status |
|
|
|
|
|
Set Name | Test Cases |
---|---|
set01 | data1 |
set02 | data2 |
set03 | data3 |
set04 | data4 |
set05 | data5 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
data1 | AC | 1 ms | 256 KB |
data2 | AC | 1 ms | 256 KB |
data3 | AC | 1 ms | 256 KB |
data4 | AC | 1 ms | 256 KB |
data5 | AC | 1 ms | 256 KB |