結果
| 問題 |
No.2297 Best Grouping
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-11 17:35:16 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 148 bytes |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 24,320 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-11 17:35:18 |
| 合計ジャッジ時間 | 1,604 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 5 WA * 15 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
void main(void){
int n = 0;
scanf("%d",&n);
if(n == 3){
printf("0");
}else{
printf("1");
}
}
Maeda