結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
Fre_de_rica
|
| 提出日時 | 2019-01-21 21:39:56 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 101 ms |
| コンパイル使用メモリ | 27,392 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-15 13:15:27 |
| 合計ジャッジ時間 | 4,840 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 23 |
コンパイルメッセージ
main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
2 | main(int argc, char *argv[]) {
| ^~~~
main.c: In function 'main':
main.c:4:17: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
4 | int A = atoi(argv[1]);
| ^~~~
ソースコード
#include <stdio.h>
main(int argc, char *argv[]) {
int A = atoi(argv[1]);
int B = atoi(argv[2]);
int Yasuo = 1;
if (A + Yasuo > B) {
printf("NO\n");
}
else {
printf("YES\n");
}
printf("%d\n", A + Yasuo - B);
}
Fre_de_rica