結果
| 問題 | No.146 試験監督(1) |
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-07 13:09:25 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 274 bytes |
| 記録 | |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 39,124 KB |
| 実行使用メモリ | 7,212 KB |
| 最終ジャッジ日時 | 2026-07-06 22:11:26 |
| 合計ジャッジ時間 | 1,706 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
#include <stdio.h>
int main(){
int type = 0;
scanf("%d",&type);
int num = 0;
for(int i = 0;i < type;i ++){
int chair,table;
scanf("%d%d",&table,&chair);
if(table == 2){
num += chair;
}else if(table == 3){
num += chair * 2;
}
}
printf("%d",num);
}
sasa