ACM-ICPC 2018南京赛区网络预选赛

A题:An Olympian Math Problem

可以发现最终的答案就是n-1

 1 #include <iostream>
 2 #include<bits/stdc++.h>
 3 using namespace std;
 4 typedef long long ll;
 5 int main()
 6 {
 7     int t;
 8     ll n;
 9     scanf("%d",&t);
10     while(t--)
11     {
12         scanf("%lld",&n);
13         printf("%lld\n",n-1);
14     }
15     return 0;
16 }
View Code

B题:The writing on the wall


C题:GDY


D题:Jerome's House


E题:AC Challenge


F题:An Easy Problem On The Trees


G题:Lpl and Energy-saving Lamps


H题:Set


I题:Skr


J题:Sum


K题:The Great Nim Game


L题:Magical Girl Haze


猜你喜欢

转载自www.cnblogs.com/scott527407973/p/9583041.html
今日推荐