結果
| 問題 |
No.2835 Take and Flip
|
| コンテスト | |
| ユーザー |
chro_96
|
| 提出日時 | 2024-08-09 22:03:07 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 256 bytes |
| コンパイル時間 | 317 ms |
| コンパイル使用メモリ | 27,648 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-08-09 22:03:09 |
| 合計ジャッジ時間 | 1,795 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
#include <stdio.h>
int main () {
int n = 0;
int a = 0;
int res = 0;
long long ans = 0LL;
res = scanf("%d", &n);
while (n > 0) {
res = scanf("%d", &a);
ans += (long long)a;
n--;
}
printf("%lld\n", ans);
return 0;
}
chro_96